var CWContactLibrary = require('../cwcard.js');

console.log("Starting program tests");

var contact = CWContactLibrary.ImportVCard("../vCard.vcf");
var contact2 = CWContactLibrary.ImportVCard("../vCard2.vcf");

console.log("\nContact 1 :\n"); console.log(contact); + console.log("\n");
console.log("\nContact 2 :\n"); console.log(contact2); + console.log("\n");

contact.name("Amo");
console.log(contact.fullname());

contact.merge(contact2);

console.log("\nContact after merge :\n"); console.log(contact); + console.log("\n");

CWContactLibrary.ExportCSV("../csv.csv", contact);